const {mongoClient,mongoose} = require('../db/mongodb')
const { Schema } = require('mongoose');

// 模型骨架
const userSchema = new Schema({
    username: {type: String},
    password: {type: Number, default: 123456},
    time: {type: Date}
});

// 生成userSchema构造生成Model
var Model = mongoClient.model('user',userSchema);

module.exports = Model;
